package com.sinogrand.elevator.data.models

// 项目详情数据
data class ProjectDetailData(
    val info: ProjectInfo
)

// 项目信息
data class ProjectInfo(
    val id: Int,
    val name: String,
    val type: Int,
    val address: String,
    val details: List<ProjectDetailField>,
    val status: Int,
    val created_at: String,
    val updated_at: String
)

// 项目详情字段
data class ProjectDetailField(
    val name: String,
    val code: String,
    val type: String,
    val options: List<String>?,
    val values: List<String>,
    val required: Boolean,
    val disabled: Boolean,
    val visible: Boolean,
    val max: Int,
    val role_code: String,
    val table_columns: Any?,
    val files: List<ProjectFile>?,
    val table_values: Any?
)

// 项目文件
data class ProjectFile(
    val name: String,
    val url: String,
    val size: Long,
    val type: String
)

// 字段类型枚举
enum class FieldType(val displayName: String) {
    INPUT("输入框"),
    SELECT("选择框"),
    DATE("日期"),
    FILES("文件")
}
